﻿using System.Collections.Generic;
using System;

namespace Lincolnwood.Foundation.Common.Data
{
    public interface IReadableRepository<TAggregateRoot, TKey>
        where TAggregateRoot : EntityBase<TKey> 
        where TKey : struct
    {
        TAggregateRoot FindById(TKey id);

        IEnumerable<TAggregateRoot> All();

        //IEnumerable<TAggregateRoot> FindByFilter(string filter);
    }
}